﻿using JGSY.CourseManagement.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JGSY.CourseManagement.Domain.Interfaces
{
    public interface IDataAccess
    {
        /// <summary>
        /// 验证用户登录信息
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        UserSession CheckUserInfo(string userName, string pwd);
        /// <summary>
        /// 获取课程播放记录统计
        /// </summary>
        /// <returns></returns>
        List<CourseSeriesEntity> GetCoursePlayRecord();
        /// <summary>
        /// 获取教师列表
        /// </summary>
        /// <returns></returns>
        List<string> GetTeachers();
        /// <summary>
        /// 获取课程列表
        /// </summary>
        /// <returns></returns>
        List<CourseEntity> GetCourses();
    }
}
